import axios from '@/libs/api.request'

// 第三方应用管理
export default class TaskApi {
  // 任务进度
  static GetTaskProgressList (params) {
    return axios.request({
      url: '/Task/GetTaskProgressList',
      method: 'get',
      // enctype: 'multipart/form-data',
      params: params
    })
  }
  // 客户任务
  static GetCustomerList (params) {
    return axios.request({
      url: '/Task/GetCustomerList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 合同任务
  static GetContractList (params) {
    return axios.request({
      url: '/Task/GetContractList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 薪酬方案任务
  static GetPlanList (params) {
    return axios.request({
      url: '/Task/GetPlanList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 员工任务
  static GetEmployeeList (params) {
    return axios.request({
      url: '/Task/GetEmployeeList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 客户薪酬任务
  static GetCustomerSalaryList (params) {
    return axios.request({
      url: '/Task/GetCustomerSalaryList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 任务信息
  static GetTaskList (params) {
    return axios.request({
      url: '/Task/GetTaskList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量同步客户任务
  static SyncCustomer (params) {
    return axios.request({
      url: '/Task/SyncCustomer',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 批量同步员工任务
  static SyncEmployee (params) {
    return axios.request({
      url: '/Task/SyncEmployee',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

}
